package cn.iocoder.ny.module.mall.domain;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@TableName(value = "mall_banner")
public class MallBannerPageVo extends PageParam {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不允许为空",groups = {Add.class, Edit.class})
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String bannerUrl;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 是否显示  0：false   1:true
     */
    @TableField(value = "is_show")
    private Integer isShow;

    /**
     * 跳转地址
     */
    @TableField(value = "router")
    private String router;

    /**
     * 租户Id
     */
    @TableField(value = "tenant_id")
    @NotNull(message = "租户ID不允许为空",groups = {Add.class, Edit.class})
    private Long tenantId;

    @TableField(value = "product_id")
    private Long productId;



    public interface Add{}
    public interface Edit{}
}